package com.lee.boot.head.first.demo.util;

import org.springframework.stereotype.Component;

/**
 * @author: Lee
 * @Date: 2018/7/4 19:06
 * @Description:
 */
@Component
public class Test {

    public static int a = 0;

    public String getA() {
        a = a + 1;
        System.out.println(a);
        return String.valueOf(a);
    }

    public String getA1() {
        a = a - 1;
        System.out.println(a);
        return String.valueOf(a);
    }
}
